﻿using Mt.Site.Core.Synchronization.Data;
using System;
using System.Threading.Tasks;

namespace Mt.Site.Core.Synchronization.Storage
{
    public interface IFileObjectAutoSyncManager
    {
        Guid CreateOrUpdateFileObjectAutoSync(CreateOrUpdateSynchorizeStore input,Guid toContentId);

        /// <summary>
        /// 直接一个绑定在栏目上的文件上传（上传的文件直接作为），需要传入menuid，以通知相应的管理员
        /// </summary>
        /// <param name="input"></param>
        /// <param name="toContentId"></param>
        /// <param name="menuId"></param>
        /// <returns></returns>
        Task<Guid> CreateOrUpdateFileObjectByMenuSync(CreateOrUpdateSynchorizeStore input, Guid toContentId, long menuId);

        Task<Guid> DeleteFileObjectByMenuSync(DeleteSyncStore input,long menuId);

        Guid DeleteFileObjectSync(DeleteSyncStore input);
    }
}
